Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(v2/column): support columnWidthRatio and marginRatio #1354

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

lessmost
Copy link
Member

No description provided.

@auto-add-label auto-add-label bot added the enhancement New feature or request label Jul 29, 2020
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?


if (!isNil(columnWidthRatio)) {
chart.theme({
columnWidthRatio,
Copy link
Member

@hustcc hustcc Jul 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是按照比率的吧,后面如要要支持像素怎么办~还有上面的 marginRatio 也是一样的。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后面考虑支持百分比+绝对值

@hustcc hustcc merged commit 26a9f05 into v2 Jul 29, 2020
@hustcc hustcc deleted the feat-column-marginRatio-widthRatio branch July 29, 2020 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants